package com.yfp.machine.api;

import com.yfp.common.core.constant.ServiceNameConstants;
import com.yfp.common.core.domain.R;
import com.yfp.machine.api.factory.RemoteMachineFallbackFactory;
import com.yfp.machine.domain.MachineDto;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * 
 * @version 1.0
 * @date 2024-07-13 14:23
 */
@FeignClient(contextId = "remoteMachineService", value = ServiceNameConstants.MACHINE_SERVICE, fallbackFactory = RemoteMachineFallbackFactory.class)
public interface RemoteMachineService {

    @GetMapping("/machine/{id}")
    R<MachineDto> selectOne(@PathVariable("id") String id);
}
